package com.bite.user.common.config;

import com.bite.common.constant.Constant;
import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {
//    @Bean("userQueue")
//    public Queue userQueue() {
//        return QueueBuilder.durable(Constant.USER_QUEUE_NAME).build();
//    }
//
//    @Bean("userExchange")
//    public FanoutExchange userExchange() {
//        return ExchangeBuilder.fanoutExchange(Constant.USER_EXCHANGE_NAME).durable(true).build();
//    }
//
//    @Bean("userBinding")
//    public Binding userBinding(@Qualifier("userQueue") Queue queue, @Qualifier("userExchange") FanoutExchange exchange) {
//        return BindingBuilder.bind(queue).to(exchange);
//    }
}
